package com.ypc.plugininterface.dto.xml;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @author yinpengcheng
 * @Date 2023/7/24
 */
@XmlRootElement(name = "plugin")
@XmlAccessorType(XmlAccessType.FIELD)
@Accessors(chain = true)
@Data
public class PluginDTO {
    @XmlElement(name = "id")
    private String id;
    @XmlElement(name = "name")
    private String name;
    @XmlElement(name = "version")
    private String version;
    @XmlElement(name = "description")
    private String description;
    @XmlElement(name = "vendor")
    private VendorDTO vendor;
    @XmlElement(name = "change-notes")
    private String changeNotes;
    @XmlElementWrapper(name = "services")
    @XmlElement(name = "service")
    private List<ServiceDTO> services;
}
